﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/List2.Master" AutoEventWireup="true" CodeBehind="EmployeeInfo.aspx.cs" Inherits="Honestysoft.Baseframework.WebUI.SystemManage.Organization.EmployeeInfo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="Stylesheet" href="../../Uploadify/js/uploadify.css" />     
    <script type="text/javascript" src="../../Uploadify/js/jquery.min.js"></script> 
    <script type="text/javascript" src="../../Uploadify/js/swfobject.js"></script> 
    <script type="text/javascript" src="../../Uploadify/js/jquery.uploadify.min.js"></script> 
    <script type="text/javascript">
        $(document).ready(function () {
            $("#uploadify").uploadify({
                'uploader': '../../Uploadify/js/uploadify.swf',
                'script': 'UploadPhoto.ashx?DataID=<%=Request["ID"] %>',
                'cancelImg': '../../Uploadify/js/cancel.png',
                'folder': 'Photo',
                'wmode': 'transparent ',
                'queueID': 'fileQueue',
                'auto': true,
                'multi': false,
                'width': 67,
                'height': 20,
                'buttonImg': '../../Uploadify/images/addPhoto.png',
                'onComplete': function (event, queueID, fileObj, response, data) {
                    document.getElementById('uploadify').style.display = 'none';
                    document.getElementById('imgPhoto').src = 'Photo/<%=Request["ID"] %>' + fileObj.name.substr(fileObj.name.lastIndexOf('.'));                    
                }
            });
        });
</script> 
    <script language="javascript" type="text/javascript">
        function openDialog2() {
            var obj = new Object();
            obj.name = "修改员工信息";
            var url = '<%=Honestysoft.Baseframework.WebUI.Globals.Home %>' + 'SystemManage/Organization/Org_Employee_Edit.aspx?FunctionID=<%=Request["FunctionID"]+"" %>&ID=<%=Request["ID"]+"" %>';
            var UrlTmp = escape(url);
            var retValue = window.showModalDialog('<%=Honestysoft.Baseframework.WebUI.Globals.Home %>Scripts/ShowDlg.aspx?url=' + UrlTmp, obj, 'scroll:0;status:0;help:1;resizable:0;dialogWidth:800px;dialogHeight:600px');
            if (typeof (retValue) != "undefined" && retValue != null && retValue) {
                window.location.href = window.location.href;
                window.parent.editSelectedNode(retValue.split('|')[1]);
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="ajaxcontentarea" class="contentstyle">

 <div class="button_area">
    
    <asp:Button runat="server" ID="btnBind" onclick="btnBind_Click"  style="display:none"/>               
                &nbsp;
                <asp:Button runat="server" ID="btnEdit" Text="修改"  CssClass="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'" OnClientClick="openDialog2();return false;" />               
                &nbsp;
                <asp:Button runat="server" ID="btnDelete" CssClass="btn_normal" 
                    onmouseover="this.className='btn_active'" 
                    onmouseout="this.className='btn_normal'" Height="20" Text="删除"  OnClientClick="return confirm('删除此公司将同时删除其下面的子公司、部门、人员等信息，是否继续？');"
                    onclick="btnDelete_Click" />
                &nbsp;<asp:Button runat="server" ID="btnActive" CssClass="btn_normal" 
                    onmouseover="this.className='btn_active'" 
                    onmouseout="this.className='btn_normal'"  Height="20" Text="启用" 
                    onclick="btnActive_Click" />
                &nbsp;<asp:Button runat="server" ID="btnCancel" CssClass="btn_normal" 
                    onmouseover="this.className='btn_active'" 
                    onMouseOut="this.className='btn_normal'"  Height="20" Text="禁用" 
                    onclick="btnCancel_Click" />
                    <asp:FileUpload runat="server" ID="fileUpload" style="display:none" />
                    
            </div>

 <table cellpadding="0" width="94%" cellspacing="3" border="0" class="tInfo" >
		<tr>
			<td style="width:80px;" class="title3">员工编号</td>
			<td class="lableline"><%=_EmpCode %></td>
            <td class="title3">姓名</td>
			<td class="lableline"><%=_EmpName %></td>
            <td colspan="2" rowspan="8" style="text-align:right;vertical-align:middle;padding-right:2px;">
                <img id='imgPhoto' src='GetPhoto.aspx?ID=<%=Request["ID"]+"" %>' width="130px" height="160px" border='0' alt='' />
                <div style="padding-right:30px"><input type="file" name="uploadify" id="uploadify" style="display:none" /></div>
            </td>
		</tr>
		<tr>
			<td class="title3">英文名</td>
			<td class="lableline"><%=_EmpEName %></td>
            <td class="title3">曾用名</td>
			<td class="lableline"><%=_UName %></td>
		</tr>
		<tr>
			
			<td class="title3">性别</td>
			<td class="lableline"><%=_Sex %></td>
			<td class="title3">政治面貌</td>
			<td class="lableline"><%=_PoliticsVisage %></td>
		</tr>
		<tr>
			<td class="title3">出生地</td>
			<td class="lableline"><%=_BirthAdd %></td>
			<td class="title3">出生日期</td>
			<td class="lableline"><%=_BirthDay %></td>
		</tr>
		<tr>
			<td class="title3">籍贯</td>
			<td class="lableline"><%=_State %></td>
			<td class="title3">民族</td>
			<td class="lableline"><%=_Nation %></td>
		</tr>
		<tr>
			<td class="title3">身份证号码</td>
			<td class="lableline"><%=_IdCard %></td>
			<td class="title3">户口所在地</td>
			<td class="lableline"><%=_PermResidence %></td>
		</tr>
		<tr>
            <td class="title3">婚姻状况</td>
            <td class="lableline"><%=_MarryFlg %></td>
            
            <td class="title3">排序号</td>
			<td class="lableline"><%=_SortCode %></td>
		</tr>
		<tr>
			<td class="title3">职务</td>
			<td class="lableline"><%=_Duty %></td>
			<td class="title3">职称</td>
			<td class="lableline"><%=_Principalship %></td>
		</tr>
        <tr>
            <td class="title3">电话(办公)</td>
			<td class="lableline"><%=_OfficePhone%></td>
			<td class="title3">分机(办公)</td>
			<td class="lableline"><%=_FamilyPhone %></td>
            <td class="title3">传真</td>
			<td class="lableline"><%=_Fax %></td>            
        </tr>
		<tr>			
            <td class="title3">手机</td>
			<td class="lableline"><%=_Mobile %></td>
            
			<td class="title3">电子邮箱</td>
			<td class="lableline" colspan="3"><%=_eMail %></td>
		</tr>
		<tr>
			<td class="title3">QQ</td>
			<td class="lableline"><%=_QQ %></td>
           <td class="title3">MSN</td>
			<td class="lableline"><%=_MSN %></td>
			<td class="title3">是否系统用户</td>
			<td class="lableline"><%=_IsUser %></td>
		</tr>
        
		<tr>			
            <td class="title3">入职日期</td>
			<td class="lableline"><%=_EnterDate %></td>
			<td class="title3">转正日期</td>
			<td class="lableline"><%=_TryoutDate %></td>
			<td class="title3">是否有效</td>
			<td class="lableline"><%=_IsValid %></td>
		</tr>
		<tr>
			<td class="title3">现居住地</td>
			<td colspan="3"  class="lableline"><%=_Address %></td>
			<td class="title3">邮编</td>
			<td class="lableline"><%=_AddPostCode %></td>
		</tr>
		<tr>
			<td class="title3">家庭地址</td>
			<td colspan="3" class="lableline"><%=_HomeAddress %></td>
			<td class="title3">邮编</td>
			<td><%=_HomePostCode %></td>
		</tr>
		<tr>
			<td class="title3">紧急联系人</td>
			<td class="lableline"><%=_EmContacts %></td>
			<td class="title3">联系电话</td>
			<td class="lableline"><%=_EmContactTEL %></td>
            <td class="title3">联系地址</td>
			<td class="lableline"><%=_EmContactADD %></td>
		</tr>
		<tr>		
            
            <td class="title3">兴趣爱好</td>
			<td colspan="5" class="lableline"><%=_Interest %></td>
		</tr>
        
		<tr>
			<td class="title3">备注</td>
			<td  colspan="5" class="lableline"><%=_Notes %></td>
		</tr>
		
    </table>
    <div style="display:none">
    
			昵称<%=_NickName %>
    手机短号<%=_MobileShotNo%>
    飞信号<%=_FetionMobile%>
    身高<%=_Height %>
    体重<%=_Weight %>
    血型<%=_Blood %>
    户口性质<%=_PRKind %>
    健康情况<%=_healthState %>
    员工状态<%=_EmplState %>
    专长<%=_Speciality %>
    </div>
</div>
</asp:Content>
